<template>
	<div class="goodsdesc-container">
		<h3>{{getdesc.title}}</h3>
		<hr>
		<div class="contant" v-html="getdesc.content"></div>
	</div>
</template>

<script>
	export default{
		data(){
			return{
				getdesc:{},
				id:this.$route.params.id
			}
		},
		created(){
			this.GetGoodsInfo()
		},
		methods:{
			GetGoodsInfo() {
				this.$http.get('api/goods/getdesc/' + this.id).then(res => {
					console.log(res.body.message[0]);
					this.getdesc=res.body.message[0];
				})
			},
		}
	}
</script>

<style>
	.goodsdesc-container{
		padding: 0 7px;
	}
	.goodsdesc-container h3{
		font-size: 16px;
		text-align: center;
		margin: 15px 0;
	}
	.goodsdesc-container .contant p{
		margin-bottom: 0;
	}
	.goodsdesc-container .contant table{
		width: 100%;
	}
	.goodsdesc-container .contant img{
		width: 100%;
	}
</style>
